package com.eliza.demo.fg

import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import android.widget.ImageButton
import android.widget.TextView
import androidx.navigation.Navigation
import com.eliza.demo.R

class F2Fragment : Fragment() {

    override fun onCreateView(
        inflater: LayoutInflater, container: ViewGroup?,
        savedInstanceState: Bundle?
    ): View? {
        var view = inflater.inflate(R.layout.fragment_f2, container, false)
        view.findViewById<TextView>(R.id.f2_tv).setOnClickListener {
            Navigation.findNavController(view).apply {
                navigate(R.id.action_f2Fragment_to_f1Fragment)
            }
        }
        return view
    }

}